#!/bin/sh
# @(#)sdconvert	1.2 5/19/86 EPI
#
# sdconvert.  This simple script just uses sdssdtoa and atosps to
# convert sds sampled data file to sps.
# It is dumb, in that it only works with two args, that are taken as
# input and output file.  If you want something else, use the commands
# directly.

if test $# != 2
 then
  echo $0: need two arguments
  exit 1
fi

if test $1 = $2
 then
 echo $0: arg1 cannot be the same as arg2
 exit 1
fi

/usr/sps/bin/sdssdtoa $1 | /usr/sps/bin/atosps - $2
